#pragma once

#include <cftf/net/msghandler.h>
#include "cs/msg_descriptor.h"

class MsgHandler : public cftf::util::Singleton<MsgHandler>
{
    friend class cftf::util::Singleton<MsgHandler>;
public:

    void Init();
    void UnInit();
    auto& GetCsHandler() const { return cs_handler; }
    void ProcMsg(cftf::net::MsgHdr* hdr);

private:
    cftf::net::MsgHandler<cs::MsgDescriptor> cs_handler;
};